package com.ruoyi.studentClass.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.studentClass.mapper.StudentClassMapper;
import com.ruoyi.studentClass.domain.StudentClass;
import com.ruoyi.studentClass.service.IStudentClassService;

/**
 * 学生分班Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-27
 */
@Service
public class StudentClassServiceImpl implements IStudentClassService 
{
    @Autowired
    private StudentClassMapper studentClassMapper;

    /**
     * 查询学生分班
     * 
     * @param studentId 学生分班主键
     * @return 学生分班
     */
    @Override
    public StudentClass selectStudentClassByStudentId(Long studentId)
    {
        return studentClassMapper.selectStudentClassByStudentId(studentId);
    }

    /**
     * 查询学生分班列表
     * 
     * @param studentClass 学生分班
     * @return 学生分班
     */
    @Override
    public List<StudentClass> selectStudentClassList(StudentClass studentClass)
    {
        return studentClassMapper.selectStudentClassList(studentClass);
    }

    /**
     * 新增学生分班
     * 
     * @param studentClass 学生分班
     * @return 结果
     */
    @Override
    public int insertStudentClass(StudentClass studentClass)
    {
        return studentClassMapper.insertStudentClass(studentClass);
    }

    /**
     * 修改学生分班
     * 
     * @param studentClass 学生分班
     * @return 结果
     */
    @Override
    public int updateStudentClass(StudentClass studentClass)
    {
        return studentClassMapper.updateStudentClass(studentClass);
    }

    /**
     * 批量删除学生分班
     * 
     * @param studentIds 需要删除的学生分班主键
     * @return 结果
     */
    @Override
    public int deleteStudentClassByStudentIds(Long[] studentIds)
    {
        return studentClassMapper.deleteStudentClassByStudentIds(studentIds);
    }

    /**
     * 删除学生分班信息
     * 
     * @param studentId 学生分班主键
     * @return 结果
     */
    @Override
    public int deleteStudentClassByStudentId(Long studentId)
    {
        return studentClassMapper.deleteStudentClassByStudentId(studentId);
    }
}
